/**
 * 领导驾驶舱
 */

Ext.define('Module.sjfx.LeadDriving2',{
	extend : 'Ext.panel.Panel',
	border: true,
	autoScroll:true,
	bodyStyle:{background:'rgb(219, 242, 239)'},
	layout:'column',
	initComponent : function() {
		var me = this;
		me.defaults = {columnWidth:1,padding:5};
		var taskSum = Ext.create("Sh.ux.FusionChartPanel",{
			title:'今日任务总数',
			height:300,
			swf:'javascript/fs/chart/Pie3D.swf',
			dataurl: 'ldjs/taskSum_today.do',
			columnWidth:1/3
		});
		var videoSum_today = Ext.create("Sh.ux.FusionChartPanel",{
			title:'今日视频总数',
			height:300,
			swf:'javascript/fs/chart/Column3D.swf',
			dataurl: 'ldjs/videoSum_today.do',
			columnWidth:1/3
		});
		var taskLv_today = Ext.create("Sh.ux.FusionChartPanel",{
			title:'今日任务完成率',
			height:300,
			swf:'javascript/fs/chart/Column3D.swf',
			dataurl: 'ldjs/taskLv_today.do',
			columnWidth:1/3
		});
		var videoSyn_week = Ext.create("Sh.ux.FusionChartPanel",{
			title:'本周视频同步数量',
			height:300,
			swf:'javascript/fs/chart/Column3D.swf',
			dataurl: 'ldjs/videoSyn_week.do',
			columnWidth:1/3
		});
		var wd_week = Ext.create("Sh.ux.FusionChartPanel",{
			title:'本周视频违规数量及违规率',
			height:300,
			swf:'javascript/fs/chart/MSColumn3DLineDY.swf',
			dataurl: 'ldjs/videoWd_week.do',
			columnWidth:1/3
		});
		var VideoMacth_week = Ext.create("Sh.ux.FusionChartPanel",{
			title:'本周视频关联量',
			height:300,
			swf:'javascript/fs/chart/Column3D.swf',
			dataurl: 'ldjs/videoManager_week.do',
			columnWidth:1/3
		});
		/*var synVideo_month = Ext.create("Sh.ux.FusionChartPanel",{
			title:'本月视频同步数量',
			height:300,
			swf:'javascript/fs/chart/Column3D.swf',
			dataurl: 'ldjs/videoSyn_month.do',
			columnWidth:1/3
		});*/
		var wg_month = Ext.create("Sh.ux.FusionChartPanel",{
			title:'最近30天视频违规数量及违规率',
			height:300,
			swf:'javascript/fs/chart/MSColumn3DLineDY.swf',
			dataurl: 'ldjs/videoWd_month.do',
			columnWidth:1
		});
		/*var videoMatch_months = Ext.create("Sh.ux.FusionChartPanel",{
			title:'本月视频关联量',
			height:300,
			swf:'javascript/fs/chart/Column3D.swf',
			dataurl: 'ldjs/videoManager_month.do',
			columnWidth:1/3
		});*/
		var thisMonthVM = Ext.create("Sh.ux.FusionChartPanel",{
			title:'最近30天视频同步量和视频关联量',
			height:300,
			swf:'javascript/fs/chart/MSColumn3D.swf',
			dataurl: 'ldjs/thisMonthVM.do',
			columnWidth:1
		});
		var taskChart = Ext.create("Sh.ux.FusionChartPanel",{
			title:Ext.Date.format(new Date(), 'Y')+'年巡视任务图表信息',
			height:300,
			swf:'javascript/fs/chart/MSColumn3DLineDY.swf',
			dataurl: 'ldjs/getXschart.do',
			columnWidth:1/2
		});
		var workChart = Ext.create("Sh.ux.FusionChartPanel",{
			title:Ext.Date.format(new Date(), 'Y')+'年工作任务图表信息',
			height:300,
			swf:'javascript/fs/chart/MSColumn3DLineDY.swf',
			dataurl: 'ldjs/getWorkchart.do',
			columnWidth:1/2
		});
		
		
//		synVideo_month，wg_month,videoMatch_months
		me.items = [taskSum,videoSum_today,taskLv_today,
		            videoSyn_week,wd_week,VideoMacth_week,
		           /* synVideo_month,*/wg_month,/*videoMatch_months*/thisMonthVM,
		            taskChart,workChart];
		me.callParent();
	}
});